import { post } from '@/api/http'

// 总资产统计
export const totalAssetStatistics = (data: any) => post({ url: '/revenueSummary/assetsStatistics', data })

// 车系收益排行
export const carSeriesRevenueRank = (data: any) => post({ url: '/revenueSummary/carSeriesStatistics', data })

// 车型收益排行
export const carModelRevenueRank = (data: any) => post({ url: '/revenueSummary/carModelStatistics', data })

// 数据汇总
export const briefReportlist = (data: any) =>
  post({
    url: '/revenueSummary/briefReport',
    data,
  })

// 收益趋势
export const incomeStatistics = (data: any) =>
  post({
    url: '/revenueSummary/incomeStatistics',
    data,
  })

// 门店收益汇总图
export const siteIncome = (data: any) =>
  post({
    url: '/revenueSummary/siteIncome',
    data,
  })

// 总收入汇总
export const revenueStatistics = (data: any) =>
  post({
    url: '/revenueSummary/revenueStatistics',
    data,
  })

// 获取配置的详情
export const tenantCostConfig = (data: any) =>
  post({
    url: '/tenantCostConfig/selectByType',
    data,
  })

// 保险/车损/油电费配置
export const tenantCostConfigSave = (data: any) =>
  post({
    url: '/tenantCostConfig/save',
    data,
  })

// 自驾短租收益趋势
export const shortOrderProfitStatistics = (data: any) =>
  post({
    url: '/revenueSummary/shortOrderProfitStatistics',
    data,
  })

// 总支出统计
export const expensesStatistics = (data: any) =>
  post({
    url: '/revenueSummary/expensesStatistics',
    data,
  })

// 订单统计
export const orderStatistics = (data: any) =>
  post({
    url: '/revenueSummary/orderStatistics',
    data,
  })

// 获取全部自定义费用项包含业务
export const queryAllCustomItem = (data: any) =>
  post({
    url: '/tenantCostTemplate/queryAllCustomItem',
    data,
  })

// 企业查询关联车辆状态车系模糊查询
export const searchCarSeriesJoinCar = (data: any) =>
  post({
    url: '/carModelTenant/searchCarSeriesJoinCar',
    data,
  })

// 企业查询关联车辆状态车型模糊查询
export const searchCarModelJoinCar = (data: any) =>
  post({
    url: '/carModelTenant/searchCarModelJoinCar',
    data,
  })

// 根据费用生成时间或结算时间统计订单费用
export const shortOrderFeeProfitStatistics = (data: any) =>
  post({
    url: '/revenueSummary/shortOrderFeeProfitStatistics',
    data,
  })
